<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<c:if test="${mainNav == 'master'}">
    <div class="content-tab">
        <ul>
            <li class="${tab == 'berita' ? 'active' : ''}"><a href="<c:url value='/berita'/>">Berita</a>
            <li class="${tab == 'page' ? 'active' : ''}"><a href="<c:url value='/page'/>">Page</a>
            <li class="${tab == 'staff' ? 'active' : ''}"><a href="<c:url value='/staff'/>">Staff</a></li>
            <li class="${tab == 'user' ? 'active' : ''}"><a href="<c:url value='/user'/>#">Member</a></li>
            <li class="${tab == 'paket' ? 'active' : ''}"><a href="<c:url value='/paket'/>#">Paket</a></li>
            <li class="${tab == 'role' ? 'active' : ''}"><a href="<c:url value='/role'/>#">Role</a></li>
            <li class="${tab == 'bank' ? 'active' : ''}"><a href="<c:url value='/bank'/>#">Bank</a></li>
        </ul>
    </div>
</c:if>
<c:if test="${mainNav == 'laporan'}">
    <div class="content-tab">
        <ul>
            <security:authorize url="/profit/madiri" >
                <li class="${namaBank == 'mandiri' ? 'active':''}"><a href="<c:url value='/profit/mandiri'/>">Mandiri</a></li>
            </security:authorize>
            <security:authorize url="/profit/bca">
                <li class="${namaBank == 'bca' ? 'active':''}"><a href="<c:url value='/profit/bca'/>">BCA</a></li>
            </security:authorize>
            <security:authorize url="/profit/bni">
                <li class="${namaBank == 'bni' ? 'active':''}"><a href="<c:url value='/profit/bni'/>">BNI</a></li>
            </security:authorize>

        </ul>
    </div>
</c:if>
<c:if test="${mainNav == 'bonus'}">
    <div class="content-tab">
        <ul>
            <security:authorize url="/bonus/madiri" >
                <li class="${namaBank == 'mandiri' ? 'active':''}"><a href="<c:url value='/bonus/mandiri'/>">Mandiri</a></li>
            </security:authorize>
            <security:authorize url="/bonus/bca">
                <li class="${namaBank == 'bca' ? 'active':''}"><a href="<c:url value='/bonus/bca'/>">BCA</a></li>
            </security:authorize>
            <security:authorize url="/bonus/bni">
                <li class="${namaBank == 'bni' ? 'active':''}"><a href="<c:url value='/bonus/bni'/>">BNI</a></li>
            </security:authorize>

        </ul>
    </div>
</c:if>
<%--


  <li class="${mainNav == 'master' ? 'active' : 'none'}">
            <a href="<c:url value='/berita'/>" class="parent">Master Data</a>
            <ul class="zero pop-nav">
                <li><a href="<c:url value='/berita'/>">Berita</a>
                <li><a href="<c:url value='/staff'/>">Staff</a></li>
                <li><a href="<c:url value='/user'/>#">Member</a></li>
                <li><a href="<c:url value='/paket'/>#">Paket</a></li>
                <li><a href="<c:url value='/role'/>#">Role</a></li>
                <li><a href="<c:url value='/bank'/>#">Bank</a></li>
            </ul>
        </li>
        <li class="${mainNav == 'laporan' ? 'active' : 'none'}">
            <a href="#" class="parent">Laporan</a>
            <ul>
                <li><a href="<c:url value='/profit'/>">Profit Perbulan</a></li>
                <li><a href="<c:url value='/profit/laporan'/>">Cetak Profit Perbulan</a></li>
                <li><a href="<c:url value='/berita'/>">Bonus Sponsor</a></li>
                <li><a href="<c:url value='/berita'/>">Cetak Bonus Sponsor</a></li>
            </ul>
        </li>--%>
